package com.entity;

import java.io.Serializable;

/**
 * publicbuildings
 * @author 
 */
public class Publicbuildings implements Serializable {
    private Integer pbid;

    private String pbname;

    private static final long serialVersionUID = 1L;

    public Integer getPbid() {
        return pbid;
    }

    public void setPbid(Integer pbid) {
        this.pbid = pbid;
    }

    public String getPbname() {
        return pbname;
    }

    public void setPbname(String pbname) {
        this.pbname = pbname;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Publicbuildings other = (Publicbuildings) that;
        return (this.getPbid() == null ? other.getPbid() == null : this.getPbid().equals(other.getPbid()))
            && (this.getPbname() == null ? other.getPbname() == null : this.getPbname().equals(other.getPbname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPbid() == null) ? 0 : getPbid().hashCode());
        result = prime * result + ((getPbname() == null) ? 0 : getPbname().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pbid=").append(pbid);
        sb.append(", pbname=").append(pbname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}